<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../org/jquery.min.js"></script>
    <script src="../org/angular-ui-router.min.js"></script>
    <script src='../org/angular.min.js'></script>
</head>
<body>
    <div>
        <div ui-view=""></div>
        <div ui-view></div>
    </div>
    <script>
      var vm = angular.module('hd',['ui.router']);
      vm.config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider){
          //默认跳转路由
          $urlRouterProvider.otherwise("");
          //配置监听跳转路由
          $stateProvider.state('my',{
              url:'/home',
              views: {
                  '': {
                      templateUrl: 'view/my.html'
                  },
                  'content': {
                     template: '123'
                }
              }
          })
          .state('my.video',{
              url: '/video',
              views: {
                  'son@my': {
                      templateUrl: 'view/video.html'
                  },
                  'list@my': {
                      template:'<h1>list模板</h1>' 
                  },
                  'content@': {
                      template: ''
                  }
              }
          })
      }])
    
    </script>
</body>
</html>